package com.lkd.controller;

import com.lkd.dto.LoginDTO;
import com.lkd.service.UserService;
import com.lkd.vo.LoginUserVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Z.lx
 * @Date: 2025/8/16 21:24
 * @Description:
 **/
@RestController
@RequestMapping("/api/user-service/user")
public class LoginController {
    @Autowired
    private UserService userService;

    @PostMapping("/login")
    public LoginUserVO login(@RequestBody LoginDTO dto){
        return userService.login(dto);
    }

}
